home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d13 / qbase121.arc / QBASE.TXT < prev    next >
Encoding:
Text File  |  1990-10-01  |  45.0 KB  |  917 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.         qBase  V1.21
  10.  
  11.         Query for dBase, Clipper, and Foxbase .DBF Files
  12.                     
  13.         Copyright 1990
  14.  
  15.         Santa Clarita SoftWorks
  16.  
  17.         Santa Clarita, California
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51. 1.  What is qBase?
  52.  
  53.      qBase was developed for quick and intuitive query reporting
  54. of existing dBase type .DBF files.   The user can design,
  55. structure, and save a custom inquiry in a matter of seconds with
  56. a printed report generated as an option.  There is no other
  57. demand placed upon the user other than supplying the .DBF files
  58. and possessing a minimal amount of database structuring
  59. knowledge.
  60.  
  61.      This program will not change the user's files in anyway
  62. except in qBase's edit mode.  It will only read the original
  63. datafile, create temporary indexes, and delete those temporary
  64. indexes.  It will require at least 512k of memory with minimal
  65. requirements for free disk space.
  66.  
  67.      qBase was developed and compiled with Clipper version Summer
  68. 1987, a Nantucket Corporation trademark.
  69.  
  70. 2.  CREATING THE QUERY
  71.  
  72.      First step in using qBase is to path or place QBASE.EXE in
  73. any directory.  To execute qBase, key in QBASE screen similar to
  74. Figure 1 will appear.   Given any existing dBase type file, qBase
  75. will detect the presence of that or any other .DBF file in the
  76. current directory and the query starts from that point.
  77.  
  78.      An alternate method is with a DBF filename (i.e. C:/>QBASE
  79. DRAWMAST).   This will bypass first opening screen and proceed
  80. directly to REPORT fields window.
  81.  
  82. FIGURE 1:
  83.                    Structure Query Menu
  84.                    ╔═══════════════╗          Shareware Version
  85.                    ║DRAWINGS.DBF   ║            qBase   V1.21
  86.                    ║MASTER.DBF     ║           Copyright 1990
  87.                    ║MRP.DBF        ║       Santa Clarita SoftWorks
  88.                    ║PRODUCT.DBF    ║           PO Box 802664
  89.                    ║PURCHASE.DBF   ║     Santa Clarita CA 91380-2664
  90.                    ║SCHEDULE.DBF   ║
  91.                    ║STKROOM.DBF    ║
  92.                    ║TIMECARD.DBF   ║
  93.                    ║WORK.DBF       ║
  94.                    ╚═══════════════╝
  95.  
  96.  Use Cursor to Locate File, Enter to Query, ESC to Quit
  97.  
  98.  
  99. FIGURE 2:
  100.  
  101.      Query for dBase/Clipper/Foxbase Files  Santa Clarita SoftWorks 1990    
  102.    Select Report Fields                                                     
  103.    ╔═══════════════╗                                                        
  104.    ║ EMPLOYEE      ║                                                        
  105.    ║ JOBNUMBER     ║                                                        
  106.    ║ ORDER         ║                                                        
  107.    ║ HOURS         ║                                                        
  108.    ║ WEEK          ║                                                        
  109.    ║ MONTH         ║                                                        
  110.    ║ YEAR          ║                                                        
  111.    ║ SYSDATE       ║                                                        
  112.    ╚═══════════════╝                                                        
  113.    ╔═══════════════╗                                                        
  114.    ║ Enter - Select║                                                        
  115.    ║ F5-  Tags All ║                                                        
  116.    ║ F6- Untags All║                                                        
  117.    ║               ║                                                        
  118.    ║ Sort Menu ===>║                                                        
  119.    ╚═══════════════╝                                                        
  120.  
  121.  
  122.  
  123.  
  124.  
  125.     After the first selection of the data file, a window will
  126. appear to the left of the first window asking if a second .DBF
  127. (Figure 12, 13) is desired (see Section 4).  The default is (N)o,
  128. whereas if the operator inserts (Y)es, qBase will return to
  129. original .DBF file window minus the first chosen .DBF file.  The
  130. relationship of two files (.DBFs) will be described in detail in
  131. Section 4 of this user guide.
  132.  
  133.  
  134. REPORT FIELDS
  135.  
  136.      The window title 'Report Fields' is the user's selection
  137. menu for what fields will appear in the final report.  To select
  138. the desired fields hit the enter key while the field is
  139. highlighted by the light bar, or hit the F5 function key to mark
  140. all of the data fields for the final report.  A checkmark will
  141. appear to the right of the selected reporting data fields.
  142.  
  143.      To access all of available fields in the user's file, scroll
  144. down or up with the cursor keys to view additional data fields.
  145.  
  146.      If you wish to alter the selection after marking, press the
  147. enter key while highlighting the checkmarked field and the field
  148. will be untagged and will not be presented in the final report. 
  149. To unmark all of the fields, press the F6 function key to
  150. globally remove the checkmarks and return to a clean slate.
  151.  
  152.      After selection of the fields, press the right arrow cursor
  153. key to move to the next window for sort selection.
  154.  
  155.      During the qBase session, the SORT and CRITERIA parameters
  156. that you are setting for the query are being echoed to the top
  157. half of the screen.  This message will give a string that will be
  158. dynamically changed when you make the change, and continued on to
  159. be printed on the final report.
  160.  
  161. SORT FIELDS
  162.  
  163.      Figure 3 depicts how the screen should appear after the
  164. Report Field selection has been completed.   The datafield list
  165. will appear as it did in Report Fields window.  In relational
  166. data file mode, this list of fields will only reflect the second
  167. or base file. 
  168.  
  169. FIGURE 3:
  170.    Select Report Fields    Select Sort Fields
  171.    ╔═══════════════╗       ╔═══════════════╗     
  172.    ║ EMPLOYEE    √ ║       ║ EMPLOYEE      ║     
  173.    ║ JOBNUMBER   √ ║       ║ JOBNUMBER     ║     
  174.    ║ ORDER       √ ║       ║ ORDER         ║     
  175.    ║ HOURS       √ ║       ║ HOURS         ║     
  176.    ║ WEEK        √ ║       ║ WEEK          ║     
  177.    ║ MONTH       √ ║       ║ MONTH         ║     
  178.    ║ YEAR        √ ║       ║ YEAR          ║     
  179.    ║ SYSDATE     √ ║       ║ SYSDATE       ║     
  180.    ╚═══════════════╝       ╚═══════════════╝     
  181.                            ╔═══════════════╗     
  182.                            ║ Enter - Select║     
  183.                            ║         Order ║     
  184.                            ║ Erase - Enter ║     
  185.                            ║  Over Any Pick║     
  186.                            ║ <=== Menu ===>║     
  187.                            ╚═══════════════╝     
  188.  
  189.  
  190.      This window will allow the user to select what order the
  191. data will appear in the final query.  A sort order is not a 
  192. requirement for qBase and to by pass this window, use the right
  193. cursor key to move on to the CRITERIA selection menu.
  194.  
  195.      The light bar is used for selecting fields in sorting the
  196. final query.  Use the Enter key to mark the first field in the
  197. sort order.  Upon hitting the Enter key, a window in the lower
  198. left hand corner will appear asking for 'Ascending' or
  199. 'Descending' order.   The default is 'Ascending', but if
  200. descending order is selected, qBase will return back to the SORT
  201. menu marking the selected SORT field with its numeric priority
  202. plus a small letter 'd' along side of it.
  203.  
  204.      In this example, a number '1' (EMPLOYEE) will appear to the
  205. right of the that field designating it as the first field in the
  206. ascending sort order.   To add another field for the SORT order,
  207. hit the Enter key while highlighting the desired field and a
  208. number '2' (MONTH) will appear to the right.   Continue to select
  209. fields for the sort order by the light bar and enter key until
  210. the final sort order has been determined and marked with a
  211. numeric character.
  212.  
  213.      To change the SORT order, simply place the light bar on a
  214. previously selected field and use the enter key to erase all of
  215. the numeric marks and reinitiate the SORT selection process.
  216.  
  217.      Finalized the SORT order by using the right cursor key to
  218. move into the Criteria selection menu.
  219.  
  220. CRITERIA FIELD
  221.  
  222.      To construct the query, the third window as pictured in
  223. Figure 4 is used for selecting what field will be the 'subject'
  224. for criteria.  Press the enter key on the a select field
  225. (EMPLOYEE) and arrowhead will appear to the right point to the
  226. field name.   To change this 'subject' field, hit enter on the
  227. same field to blank out the arrowhead, or hit the enter key on
  228. another field for a new selection.  There can only be one field
  229. selected at a time in this stage.
  230.  
  231.  
  232. FIGURE 4:
  233.   TIMECARD.DBF is sorted on EMPLOYEE, MONTH                                     
  234.   Where
  235.                                             Select Criteria Field
  236.    ╔═══════════════╗   ╔═══════════════╗    ╔═══════════════╗
  237.    ║ EMPLOYEE    √ ║   ║ EMPLOYEE    1 ║    ║ EMPLOYEE      ║
  238.    ║ JOBNUMBER   √ ║   ║ JOBNUMBER     ║    ║ JOBNUMBER     ║
  239.    ║ ORDER       √ ║   ║ ORDER         ║    ║ ORDER         ║
  240.    ║ HOURS       √ ║   ║ HOURS         ║    ║ HOURS         ║
  241.    ║ WEEK        √ ║   ║ WEEK          ║    ║ WEEK          ║
  242.    ║ MONTH       √ ║   ║ MONTH       2 ║    ║ MONTH         ║
  243.    ║ YEAR        √ ║   ║ YEAR          ║    ║ YEAR          ║
  244.    ║ SYSDATE     √ ║   ║ SYSDATE       ║    ║ SYSDATE       ║
  245.    ╚═══════════════╝   ╚═══════════════╝    ╚═══════════════╝
  246.                                             ╔═══════════════╗
  247.                                             ║Enter - Select ║
  248.                                             ║         Query ║
  249.                                             ║F10 To Query   ║
  250.                                             ║NONE for ALL   ║
  251.                                             ║<=== Sort Menu ║
  252.                                             ╚═══════════════╝
  253.  
  254.  
  255.  
  256.  
  257.      If no query to a specific condition is required, hitting the
  258. F10 function key without marking any field will give a complete
  259. display and report of the database.
  260.  
  261.      Hitting the F10 function key with marked a field, a small
  262. window in the lower left hand corner of the screen will appear
  263. with two choices: 'IS' or 'IS NOT' (Figure 14).  The default is
  264. 'IS'; and if 'IS NOT' is selected, all elements NOT matching the
  265. following CRITERIA will be reported.  
  266.  
  267.      After selecting the IS/IS NOT qualifier, a fourth window
  268. will appear as shown in Figure 5.  The fourth window is a menu
  269. for selecting logic operators.
  270.  
  271. FIGURE 5:
  272.  
  273.   TIMECARD.DBF is sorted on EMPLOYEE, MONTH                                     
  274.   Where EMPLOYEE                                                                
  275.                                              Select Criteria Field
  276.    ╔═══════════════╗   ╔═══════════════╗     ╔═══════════════╗
  277.    ║ EMPLOYEE    √ ║   ║ EMPLOYEE    1 ║     ║ EMPLOYEE    < ║
  278.    ║ JOBNUMBER   √ ║   ║ JOBNUMBER     ║     ║ JOBNUMBER     ║
  279.    ║ ORDER       √ ║   ║ ORDER         ║     ║ ORDER         ║
  280.    ║ HOURS       √ ║   ║ HOURS         ║     ║ HOURS         ║
  281.    ║ WEEK        √ ║   ║ WEEK          ║     ║ WEEK          ║
  282.    ║ MONTH       √ ║   ║ MONTH       2 ║     ║ MONTH         ║
  283.    ║ YEAR        √ ║   ║ YEAR          ║     ║ YEAR          ║
  284.    ║ SYSDATE     √ ║   ║ SYSDATE       ║     ║ SYSDATE       ║
  285.    ╚═══════════════╝   ╚═══════════════╝     ╚═══════════════╝
  286.                             ╔════════════════════════════════════════╗
  287.                             ║ Equal to               Not Equal to    ║
  288.                             ║ Greater Than           Between         ║
  289.                             ║ Less Than              Sounds Like     ║
  290.                             ║ Greater Than/Equal     Contains        ║
  291.                             ║ Less Than/Equal        BLANKS or 0     ║
  292.                             ╚════════════════════════════════════════╝
  293.  
  294.                          All Records Equal to (=)                               
  295.  
  296.  
  297.      The logic condition commands are listed below require no
  298. explanation, but there are some noted features about qBase's use
  299. of them:
  300.  
  301.           Equal to  -  Will collect all records meeting criteria,
  302.           and if in a character field, keying only a single
  303.           character will identify all records beginning with that
  304.           character.  Blank entry will present all records.
  305.  
  306.           Greater Than - All records greater than and not
  307.           including the subject.
  308.  
  309.           Less Than  -  All records less than and not including
  310.           the subject.
  311.  
  312.           Greater Than/Equal - All records greater than and equal
  313.           to the subject.
  314.  
  315.           Less Than/Equal - All records greater than and equal to
  316.           the subject.
  317.  
  318.           Not Equal to - All records not exactly equal to the
  319.           subject.
  320.  
  321.           Between - All records between a set of limits, and not
  322.           including the two subjects.
  323.  
  324.           Sounds Like - All phonetic sound 'alikes' based on the
  325.           Soundex algorithm.
  326.  
  327.           Contains - All records containing sub-string, either as
  328.           a whole record equaling the sub-string or in part.
  329.  
  330.           Blanks or 0 - All blank records or containing zero (0).
  331.  
  332.  
  333.      Select the operator by highlighting the logic command and
  334. hitting the enter key.  A prompt will appear requesting the
  335. operator to input specific data (EMPLOYEE = CURREY) for the
  336. query.   Upon completion of the data entry hit enter and a
  337. continuation window will appear on the left side of the screen
  338. (Figure 6) asking the user if additional parameters are to be
  339. added to the inquiry.  qBase is case sensitive; in this example,
  340. Currey will have to be all capitals (CURREY) to access all of
  341. Currey's timecard records.
  342.                                    
  343.      Three choices are given:
  344.                
  345.                NO  -     No Further Conditions Required
  346.  
  347.                AND -     If Both Conditions are True
  348.  
  349.                OR  -     If Either Condition is True
  350.  
  351.     Selecting either of the last two choices will continue the
  352. process of selecting a second condition for the query report. 
  353. The entry process is the same for the second condition operator,
  354. finalized with the enter key (Figure 7).  Selecting .AND. in this
  355. case with MONTH BETWEEN 03 AND 06 shows:
  356.  
  357. FIGURE 6:
  358.   TIMECARD.DBF is sorted on EMPLOYEE, MONTH                                     
  359.   Where EMPLOYEE is   equal to CURREY                                           
  360.                                                     Select Criteria Field       
  361.    ╔═══════════════╗       ╔═══════════════╗        ╔═══════════════╗           
  362.    ║ EMPLOYEE    √ ║       ║ EMPLOYEE    1 ║        ║ EMPLOYEE    < ║
  363.    ║ JOBNUMBER   √ ║       ║ JOBNUMBER     ║        ║ JOBNUMBER     ║           
  364.    ║ ORDER       √ ║       ║ ORDER         ║        ║ ORDER         ║           
  365.    ║ HOURS       √ ║       ║ HOURS         ║        ║ HOURS         ║           
  366.    ║ WEEK        √ ║       ║ WEEK          ║        ║ WEEK          ║           
  367.    ║ MONTH╔════════════╗   ║ MONTH       2 ║        ║ MONTH         ║           
  368.    ║ YEAR ║Additional  ║   ║ YEAR          ║        ║ YEAR          ║           
  369.    ║ SYSDA║Criteria?   ║   ║ SYSDATE       ║        ║ SYSDATE       ║           
  370.    ╚══════║     NO     ║   ╚═══════════════╝        ╚═══════════════╝           
  371.           ║    .AND.   ║        ╔═══════════════════════════════════════╗
  372.           ║    .OR.    ║        ║ Equal to               Not Equal to   ║
  373.           ╚════════════╝        ║ Greater Than           Between        ║
  374.                                 ║ Less Than              Sounds Like    ║
  375.      Record Criteria?           ║ Greater Than/Equal     Contains       ║
  376.      CURREY                     ║ Less Than/Equal        BLANKS or 0    ║
  377.                                 ╚═══════════════════════════════════════╝
  378.                                                                                 
  379.                                  No, Continue                                   
  380.  
  381.  
  382. FIGURE 7:
  383.   TIMECARD.DBF is sorted on EMPLOYEE, MONTH
  384.   Where EMPLOYEE is   equal to CURREY and MONTH                                 
  385.                                               Select Criteria Field
  386.    ╔═══════════════╗    ╔═══════════════╗     ╔═══════════════╗
  387.    ║ EMPLOYEE    √ ║    ║ EMPLOYEE    1 ║     ║ EMPLOYEE      ║
  388.    ║ JOBNUMBER   √ ║    ║ JOBNUMBER     ║     ║ JOBNUMBER     ║
  389.    ║ ORDER       √ ║    ║ ORDER         ║     ║ ORDER         ║
  390.    ║ HOURS       √ ║    ║ HOURS         ║     ║ HOURS         ║
  391.    ║ WEEK        √ ║    ║ WEEK          ║     ║ WEEK          ║
  392.    ║ MONTH       √ ║    ║ MONTH       2 ║     ║ MONTH       < ║
  393.    ║ YEAR        √ ║    ║ YEAR          ║     ║ YEAR          ║
  394.    ║ SYSDATE     √ ║    ║ SYSDATE       ║     ║ SYSDATE       ║
  395.    ╚═══════════════╝    ╚═══════════════╝     ╚═══════════════╝
  396.                                 ╔═══════════════════════════════════════╗
  397.                                 ║ Equal to               Not Equal to   ║
  398.                                 ║ Greater Than           Between        ║
  399.                                 ║ Less Than              Sounds Like    ║
  400.      Lower Record Criteria?     ║ Greater Than/Equal     Contains       ║
  401.      03                         ║ Less Than/Equal        BLANKS or 0    ║
  402.      Upper Record Range?        ╚═══════════════════════════════════════╝
  403.      06                                                                         
  404.  
  405.  
  406.      After each individual criteria selection, a window will
  407. appear asking if the prior criteria is a .NOT. condition, that
  408. is, all records that do not meet the selected condition will be
  409. listed in the query.  qBase defaults to 'N' for rapid keying and
  410. will present the query as is.
  411.  
  412. THE QUERY REPORT
  413.  
  414.      The sorting (if any) and condition search process occurs
  415. with a screen similar to Figure 8 appearing with final query
  416. result.  This inquiry screen can be scrolled by using the cursor,
  417. Page Up/Down, Home, End, and Tab keys.  At the bottom of the
  418. screen are listed hot keys for editing and printing data in the
  419. query.  A display in the lower leftmost corner of the screen
  420. shows the number resulting records versus the total number of
  421. records in the starting base file.  In this case, 9/700, or 9
  422. records from a total of 700 records in TIMECARD.DBF.
  423.  
  424.  
  425. FIGURE 8:
  426.                      All Records in a Selected Range (||)                       
  427. ╔══════════════════════════════════════════════════════════════════════╗
  428. ║ TIMECARD.DBF is sorted on EMPLOYEE, MONTH                            ║
  429. ║ Where EMPLOYEE is   equal to CURREY and MONTH is  between 03 and 06  ║
  430. ║                                                                      ║
  431. ╚══════════════════════════════════════════════════════════════════════╝
  432.   EMPLOYEE     JOBNUMBER   ORDER         HOURS   WEEK   MONTH   YEAR
  433. ═════════════╤═══════════╤═════════════╤═══════╤══════╤═══════╤════════
  434.   CURREY     │ 14555101  │ BK108-000   │ 35.00 │ 14   │ 04    │ 89
  435.   CURREY     │ 14555101  │ BK108-000   │ 40.00 │ 21   │ 04    │ 89
  436.   CURREY     │ 14555101  │ BK108-000   │ 36.00 │ 07   │ 04    │ 89
  437.   CURREY     │ 14555101  │ BK108-000   │ 10.00 │ 28   │ 04    │ 89
  438.   CURREY     │ 14555101  │ BK108-000   │ 12.00 │ 05   │ 05    │ 89
  439.   CURREY     │ 14555101  │ BK108-000   │ 14.00 │ 31   │ 05    │ 89
  440.   CURREY     │ 14555101  │ BK108-000   │ 29.00 │ 26   │ 05    │ 89
  441.   CURREY     │ 14555101  │ BK108-000   │ 22.00 │ 12   │ 05    │ 89
  442.   CURREY     │ 14555101  │ BK108-000   │ 35.00 │ 19   │ 05    │ 89
  443.              │           │             │       │      │       │
  444.              │           │             │       │      │       │
  445. Query#/Total# = 9/700   F7 - Print Report     ENTER - Edit  ESC - Return
  446. F3 - Save Query (.QBA)  F4 - Save Query (.DBF)   F5 - Data Replace
  447.  
  448.      At this stage of the query, the user has options to keep,
  449. edit, report the resulting answer file.  
  450.  
  451.  
  452.  
  453. Editing
  454.  
  455.      To EDIT, hit the ENTER key while on a highlighted field. 
  456. With color monitors the light bar will change from red-on-white
  457. to yellow-on-green, letting the user to modify the data.
  458.  
  459.      For Global editing, F5 will allow one field in all of the
  460. displayed records meeting the criteria be changed in mass.  If
  461. the user wanted to change ORDER data from 'BK100-000' to
  462. 'AH212-111', first hit the F5 key, select the ORDER field in the
  463. window that appears, a second window will follow with the
  464. file/field to be changed and requesting the replacement data. 
  465. Enter AH212-111 in the blank spot provided, hit enter.  qBase
  466. will replace all field records with that change information and
  467. return to the inquiry screen.  If a element in the criteria is
  468. changed such as CURREY, placing it outside of the query, then
  469. those records will disappear from view, but not from the file. 
  470. The ESCape key can be used at any stage of the edit to abort any
  471. possible changes prior to the final window.
  472.  
  473. Printing
  474.  
  475.      To PRINT the query report, function key F7 will pop a window
  476. print menu requesting optional printer commands (Figure 9).
  477.  
  478.      Default List and Menu Selection:
  479.  
  480.              Set Page Length:    Default = 50
  481.              Margins:            Default = Left: 05  Right: 80
  482.              Condensed Print     Default = Off
  483.  
  484. FIGURE 9:
  485. ╔══════════════════════════════════════════════════════════════════════╗
  486. ║ TIMECARD.DBF is sorted on EMPLOYEE, MONTH                            ║
  487. ║ Where EMPLOYEE is   equal to CURREY and MONTH is  between 03 and 06  ║
  488. ║                                                                      ║
  489. ╚══════════════════════════════════════════════════════════════════════╝
  490.   EMPLOYEE     JOBNUMBER   ORDER           HOURS   WEEK   MONTH   YEAR
  491. ══════════════╤═══════════╤═══════════════╤═══════╤══════╤═══════╤════════
  492.   CURREY      │ 14555101  │ BK108-000     │ 35.00 │ 14   │ 04    │ 89
  493.   CURREY      │ 14555101  │ BK108-000     │ 40.00 │ 21   │ 04    │ 89
  494.   CURREY   ╔══════════════════════════╗   │ 36.00 │ 07   │ 04    │ 89
  495.   CURREY   ║Shareware Ver. qBase V1.21 ║   │ 10.00 │ 28   │ 04    │ 89
  496.   CURREY   ║      Copyright 1990      ║   │ 12.00 │ 05   │ 05    │ 89
  497.   CURREY   ║ Santa Clarita SoftWorks  ║   │ 14.00 │ 31   │ 05    │ 89
  498.   CURREY   ║ -----------------------  ║   │ 29.00 │ 26   │ 05    │ 89
  499.   CURREY   ║ * Print Features Menu *  ║   │ 22.00 │ 12   │ 05    │ 89
  500.   CURREY   ║      Set Margins         ║   │ 35.00 │ 19   │ 05    │ 89
  501.            ║    Set Page Length       ║   │       │      │       │
  502.            ║  Set Condensed Print Off ║   │       │      │       │
  503.            ║  Start Printing (LPT1)   ║   │       │      │       │
  504.            ║   Send Query to File     ║   │       │      │       │
  505.            ║    Return to qBase       ║   │       │      │       │
  506.            ╚══════════════════════════╝   │       │      │       │
  507.                   │           │           │       │      │       │
  508.   Query#/Total# = 9/700     F7 - Print Report  ENTER - Edit  ESC - Return
  509.   F3 - Save Query (.QBA)    F4 - Save Query (.DBF)     F5 - Data Replace
  510.  
  511.  
  512.  
  513.      If printing is requested, the printer should be set on for
  514. continuous feed.  The screen will remain in the inquiry mode of
  515. qBase.
  516.  
  517.      This program is designed to be formatted by the user. 
  518. Custom formats should be designed to fit with in the media and
  519. printer limitations.  Margins, page lengths, and condense
  520. printing can be coordinated together to present the optimal
  521. report output.  qBase has been developed and tested on
  522. conventional dot matrix and laser printers with consistent
  523. results.  Printing formats have been designed to be "best fit",
  524. meaning, to get the most information in the least space with the
  525. best appearance.
  526.  
  527. Print to File
  528.  
  529.      'Send Query to File' menu selection provides the means to
  530. copy the query to an ASCII file in either DELIMITED format or
  531. clean text.  Upon request, the delimited symbol is user generated
  532. along with new .TXT file name.  Using the ASCII Text version, the
  533. query report can be save for later printing with the limitation
  534. of 512 characters per line (wrap occurs after this length).
  535.  
  536. Save Query Parameters
  537.  
  538.      F3 - Save-a-Query saves the user from rekeying the same
  539. query over and over again.  After selecting file(s), REPORT
  540. fields, SORT fields, CRITERIA fields, and any of the other
  541. parameters in a complex query, the user may save the query by
  542. pressing the F3 key.  A window will appear in the center of the
  543. view table asking for a the name of the new {filename}.QBA file. 
  544. Enter the eight or less characters, hit enter, and a new file
  545. will be created with a .QBA extension.   To invoke this query in
  546. the future, have qBase in your DOS path or in the same directory
  547. as the .QBA file with the subject .DBF file(s), and key the
  548. command:  C:\>qbase {filename}.  The menus will be automagically
  549. be bypassed, and the data viewing screen will appear as  though
  550. the menus were manually marked.  Once in this view, the user can
  551. access qBase normally to print, edit, or return to the menus.
  552.  
  553. Save Query Results to a .DBF File
  554.  
  555.      This feature will allow the qBase user to save the resulting
  556. query records in .DBF file format.  If two datafiles are used,
  557. only the second or base file will be copies to the new file.  All
  558. fields of the 'base'  file will be transferred to the new file. 
  559. Press F4, and a window will  appear in the center of the screen
  560. requesting the new name of the file.   Key in the new name and
  561. qBase will check for an existing .DBF file and  if so, it will
  562. allow the user to continue with an overwrite, or select a new
  563. name.
  564.  
  565.      To return from the inquiry record screen, hit the ESC key
  566. and it will return qBase back to the Criteria Selection Menu
  567. (Figure 4). From this point, the user may start over with a
  568. different criteria selection, or use the cursor keys switching
  569. between the other menus up to the initial menu.
  570.  
  571. 4.  MULTIPLE DATA FILES
  572.  
  573.      qBase Version 1.21 has added the relational database feature
  574. giving the user the choice of one or two .DBFs to be used in the
  575. query.  After the first .DBF file has been selected, a window
  576. will appear requesting an additional file to be used.  If yes
  577. given, the first selected file will disappear from the list in
  578. depicted in Figure 1 and appear in the lower left corner as the
  579. first data file.  The list reappear with a light bar and the
  580. second .DBF is available for selection.  Select the second .DBF
  581. and a green window will appear with a list of common field of the
  582. two .DBF files.  Or if there is no fields that are shared in
  583. common with either of the two data files, then a message will
  584. appear to that effect and return to the starting screen.
  585.  
  586.      With the green window, select the desired common field to be
  587. the 'KEY' field for the query.  In most cases, there will only be
  588. one field available for the key, but the qBase has given the user
  589. the choice of any common field for the key.
  590.  
  591.      Figure 10 and Figure 11 give examples of two related files
  592. with 'Salesman' as the only common field:
  593.  
  594. FIGURE 10:
  595. ╔══════════════════════════════════════════════════════════════════════╗
  596. ║ SALESMAN.DBF Records are Not Sorted                                  ║
  597. ║ No Criteria Selected, All Records Are Displayed                      ║
  598. ║                                                                      ║
  599. ╚══════════════════════════════════════════════════════════════════════╝
  600.              SALESMAN          DISTRICT     PRODUCT      COMMISSION
  601. ═════════════════════════════╤════════════╤════════════╤════════════════
  602.              RETTIG          │ WESTERN    │ ELECT      │         10
  603.              SMITH           │ EASTERN    │ ELECT      │         15
  604.              KOLMAN          │ NORTHERN   │ PAPER      │         12
  605.              MATTHEWS        │ SOUTHERN   │ ELECT      │         11
  606.              BUSH            │ MIDWEST    │ ELECT      │         12
  607.              SILVERWOOD      │ PACIFIC    │ ELECT      │         15
  608.              ROCKOFF         │ EUROPE     │ PAPER      │         10
  609.                              │            │            │
  610.                              │            │            │
  611.                              │            │            │
  612.   Query#/Total# = 7/7     F7 - Print Report  ENTER - Edit ESC - Return
  613.   F3 - Save Query (.QBA)  F4 - Save Query (.DBF)   F5 - Data Replace
  614.  
  615. FIGURE 11:
  616. ╔══════════════════════════════════════════════════════════════════════╗
  617. ║ ORDERS.DBF Records are Not Sorted                                    ║
  618. ║ No Criteria Selected, All Records Are Displayed                      ║
  619. ║                                                                      ║
  620. ╚══════════════════════════════════════════════════════════════════════╝
  621.       SALEORDER   ITEM              SALESMAN          CUSTOMER
  622. ════════════════╤═════════════════╤═════════════════╤═══════════════════
  623.       200123    │ CALCULATOR      │ KOLMAN          │ BOSTON GENERAL
  624.       200124    │ DETECTOR        │ KOLMAN          │ BOSTON GENERAL
  625.       200300    │ PAPERCUPS       │ ROCKOFF         │ THOMAS INDUSTRIES
  626.       200301    │ VIEWER          │ ROCKOFF         │ THOMAS INDUSTRIES
  627.       200301    │ WATERHAMMER     │ ROCKOFF         │ THOMAS INDUSTRIES
  628.       200350    │ PAINT           │ SMITH           │ POTOMAC POWER
  629.       200350    │ BRUSH           │ SMITH           │ POTOMAC POWER
  630.       200350    │ LADDER          │ SMITH           │ POTOMAC POWER
  631.       200361    │ CANOE           │ SILVERWOOD      │ L.A. EXPRESS
  632.                 │                 │                 │
  633.                 │                 │                 │
  634.   Query#/Total# = 7/7     F7 - Print Report  ENTER - Edit ESC - Return
  635.   F3 - Save Query (.QBA)  F4 - Save Query (.DBF)   F5 - Data Replace
  636.  
  637.                             Structure Query Menu
  638.  
  639.  
  640.  
  641.     When using two data files, the first file selected will be
  642. the file the relationship is set into.  That is, for every
  643. occurrence of a record in the SECOND data file key field matching
  644. a data record with the same value in the FIRST data file key
  645. field, those records now have a relationship.  With the example
  646. files above, SALESMAN.DBF and ORDERS.DBF have the key field
  647. SALESMAN.  SALESMAN.DBF is the master file for information on the
  648. salesman, in this case, unique to each record or salesman. 
  649. ORDERS.DBF is the record listing for current sales, listing the salesman for
  650. each transaction.  Using qBase to establish relationships, it is
  651. advised that 'master' files be selected first, and transaction
  652. records second.  The will simulate the dBase command 'SET
  653. RELATION TO SALESMAN INTO SALESMAN', with SALESMAN.DBF in first
  654. workarea and ORDERS.DBF in the second workarea.  
  655.  
  656. FIGURE 12:
  657.                             ╔═══════════════╗
  658.                             ║ORDERS.DBF     ║          qBase   V1.21
  659.                             ║SALESMAN.DBF   ║         Copyright 1990
  660.   ╔═════════════════════╗   ╚═══════════════╝     Santa Clarita SoftWorks
  661.   ║   Select Second     ║                             PO Box 802664
  662.   ║ .DBF file to Set    ║                       Santa Clarita CA 91380-2664
  663.   ║ Relationship into   ║                                                       
  664.   ║    SALESMAN.DBF     ║                                                       
  665.   ║ for Query? (Y/N)  N ║                                                       
  666.   ╚═════════════════════╝                                                       
  667.                                                                                 
  668.                                                                                 
  669.           Use Cursor to Locate File, Enter to Query, ESC to Quit                
  670.                                                                                 
  671.  
  672.  
  673.     After selecting the first datafile, a window will prompt for
  674. second relational datafile. Answering (Y)es will return back to
  675. the first '.dbf' window minus the first data file selected.  It
  676. will appear in the lower left hand of screen identified as such
  677. (Figure 12).  Select the second data file and a window will
  678. appear similar to Figure 13 with a list of common fields to both
  679. datafiles.  If there are no common fields, then an warning
  680. message will appear, and qBase will return to the original menu
  681. to start over again.
  682.  
  683. FIGURE 13:
  684.                             Structure Query Menu                                
  685.                                                                                 
  686.         Pick Common Key                                                         
  687.         ╔══════════════╗    ╔═══════════════╗                                   
  688.         ║SALESMAN      ║    ║ORDERS.DBF     ║                                   
  689.         ╚══════════════╝    ╚═══════════════╝                                   
  690.                                                                                 
  691.                                                                                 
  692.                                                                                 
  693.                                                                                 
  694.     First Data File:                                                            
  695.     SALESMAN.DBF                                                                
  696.                                                                                 
  697.                                                                                 
  698.                                                                                 
  699.           Use Cursor to Locate File, Enter to Query, ESC to Quit                
  700.  
  701.  
  702.  
  703.     After selection of the KEY field, qBase will construct the
  704. same schema as with a single .DBF.  All fields of both the first
  705. .DBF and the second file will be listed in that order and
  706. subsequential their fields will appear in their natural order. 
  707. When multiple .DBFs files are accessed, a small dot will appear
  708. to the immediate right of the field name starting at the second
  709. file. 
  710.  
  711. FIGURE 14:
  712.  
  713.   SALESMAN.DBF is Related to ORDERS.DBF and is sorted on SALESMAN               
  714.   Where A->DISTRICT                                                             
  715.                                                     Select Criteria Field       
  716.    ╔═══════════════╗       ╔═══════════════╗        ╔═══════════════╗           
  717.    ║ SALESMAN    √ ║       ║ SALEORDER     ║        ║ SALESMAN      ║           
  718.    ║ DISTRICT    √ ║       ║ ITEM          ║        ║ DISTRICT     ║           
  719.    ║ PRODUCT     √ ║       ║ SALESMAN    1 ║        ║ PRODUCT       ║           
  720.    ║ COMMISSION  √ ║       ║ CUSTOMER      ║        ║ COMMISSION    ║           
  721.    ║ SALEORDER  ·√ ║       ╚═══════════════╝        ║ SALEORDER  ·  ║           
  722.    ║ ITEM       ·√ ║                                ║ ITEM       ·  ║           
  723.    ║ SALESMAN   ·√ ║                                ║ SALESMAN   ·  ║           
  724.    ║ CUSTOMER   ·√ ║                                ║ CUSTOMER   ·  ║           
  725.    ╚═══════════════╝                                ╚═══════════════╝           
  726.                                                     ╔═══════════════╗           
  727.           ╔═══════╗                                 ║Enter - Select ║           
  728.           ║  IS   ║                                 ║         Query ║           
  729.           ║       ║                                 ║F10 To Query   ║           
  730.           ║IS NOT ║                                 ║NONE for ALL   ║           
  731.           ╚═══════╝                                 ║<=== Sort Menu ║           
  732.                                                     ╚═══════════════╝           
  733.                                                                                 
  734.                                                                                 
  735.                                                                                 
  736.                                                                                 
  737. FIGURE 15:
  738.  
  739.   SALESMAN.DBF is Related to ORDERS.DBF and is sorted on SALESMAN               
  740.   Where A->DISTRICT                                                             
  741.                                                     Select Criteria Field       
  742.    ╔═══════════════╗       ╔═══════════════╗        ╔═══════════════╗           
  743.    ║ SALESMAN    √ ║       ║ SALEORDER     ║        ║ SALESMAN      ║           
  744.    ║ DISTRICT    √ ║       ║ ITEM          ║        ║ DISTRICT     ║           
  745.    ║ PRODUCT     √ ║       ║ SALESMAN    1 ║        ║ PRODUCT       ║           
  746.    ║ COMMISSION  √ ║       ║ CUSTOMER      ║        ║ COMMISSION    ║           
  747.    ║ SALEORDER  ·√ ║       ╚═══════════════╝        ║ SALEORDER  ·  ║           
  748.    ║ ITEM       ·√ ║                                ║ ITEM       ·  ║           
  749.    ║ SALESMAN   ·√ ║                                ║ SALESMAN   ·  ║           
  750.    ║ CUSTOMER   ·√ ║                                ║ CUSTOMER   ·  ║           
  751.    ╚═══════════════╝                                ╚═══════════════╝           
  752.                                 ╔══════════════════════════════════════╗
  753.                                 ║ Equal to               Not Equal to  ║
  754.                                 ║ Greater Than           Between       ║
  755.                                 ║ Less Than              Sounds Like   ║
  756.      Record Criteria?           ║ Greater Than/Equal     Contains      ║
  757.      EUROPE                     ║ Less Than/Equal        BLANKS or 0   ║
  758.                                 ╚══════════════════════════════════════╝
  759.                          All Records Equal to (=)                               
  760.  
  761.  
  762.     As Figure 14 shows, the two .DBF menus are similar to the
  763. single data file query.  The SORT menu only reflects the second
  764. database since sorting of the first data file is meaningless
  765. during the relational query.  The common fields are shown twice,
  766. the first half of the listings are of the first data file and the
  767. last half are of the second file.  The user is given the choice
  768. to include the redundant KEY field chosen in the first part of
  769. the query which will always be equal.  The other common fields if
  770. any may or may not contain duplicate data and are treated as any
  771. other data field. 
  772.  
  773.      After finishing the REPORT, SORT, IS/IS NOT, and CRITERIA
  774. parameters as shown in Figure 15, press enter for the relational
  775. query results.
  776.      The resulting query (Figure 16) will identify each chosen
  777. field with its parental data file.  If a item occurs more than
  778. one in the key common field in the second database, the
  779. information from the first database will appear for each
  780. instance.   
  781.  
  782. FIGURE 16:
  783. ╔══════════════════════════════════════════════════════════════════╗
  784. ║ SALESMAN.DBF is Related to ORDERS.DBF and is sorted on SALESMAN  ║
  785. ║ Where A->DISTRICT is   equal to EUROPE                           ║
  786. ║                                                                  ║
  787. ╚══════════════════════════════════════════════════════════════════╝
  788.        SALESMAN->        SALESMAN->   SALESMAN->   SALESMAN->   ORDERS->        
  789.        SALESMAN          DISTRICT     PRODUCT      COMMISSION   SALEORDER       
  790. ═══════════════════════╤════════════╤════════════╤════════════╤═══════════
  791.        ROCKOFF         │ EUROPE     │ PAPER      │         10 │ 200300          
  792.        ROCKOFF         │ EUROPE     │ PAPER      │         10 │ 200301          
  793.        ROCKOFF         │ EUROPE     │ PAPER      │         10 │ 200301          
  794.                        │            │            │            │                 
  795.                        │            │            │            │                 
  796.                        │            │            │            │                 
  797.                        │            │            │            │                 
  798.                        │            │            │            │                 
  799.   Query#/Total# = 3/9       F7 - Print Report     ENTER - Edit  ESC - Return
  800.   F3 - Save Query (.QBA)    F4 - Save Query (.DBF)        F5 - Data Replace
  801.  
  802. FIGURE 16 (continue):
  803. ╔═══════════════════════════════════════════════════════════════════╗
  804. ║ SALESMAN.DBF is Related to ORDERS.DBF and is sorted on SALESMAN   ║
  805. ║ Where A->DISTRICT is   equal to EUROPE                            ║
  806. ║                                                                   ║
  807. ╚═══════════════════════════════════════════════════════════════════╝
  808.       ORDERS->    ORDERS->          ORDERS->          ORDERS->                  
  809.       SALEORDER   ITEM              SALESMAN          CUSTOMER                  
  810. ════════════════╤═════════════════╤═════════════════╤═══════════════════
  811.       200300    │ PAPERCUPS       │ ROCKOFF         │ THOMAS INDUSTRIES         
  812.       200301    │ VIEWER          │ ROCKOFF         │ THOMAS INDUSTRIES         
  813.       200301    │ WATERHAMMER     │ ROCKOFF         │ THOMAS INDUSTRIES         
  814.                 │                 │                 │                           
  815.                 │                 │                 │                           
  816.                 │                 │                 │                           
  817.                 │                 │                 │                           
  818.                 │                 │                 │                           
  819.   Query#/Total# = 3/9       F7 - Print Report  ENTER - Edit     ESC - Return
  820.   F3 - Save Query (.QBA)    F4 - Save Query (.DBF)   F5 - Data Replace
  821.  
  822.  
  823.         Criteria selection will work equally well in the first
  824. data file as it does with the second data file.  If certain
  825. records are requested in the 'master' file, only those records
  826. will appear. 
  827.  
  828.  
  829.  
  830.  
  831. 5.  What is New in qBase, Version 1.21 (August 1990)
  832.      a)  Added Relational database queries (multiple .DBF
  833.      queries)
  834.      b)  Added the IS/IS NOT Set Parameter
  835.      c)  Improved the ESCape sequence out of certain edit modes
  836.      and file writes
  837.      d)  Added Descending Sorting along with Ascending Sorts per
  838.      field
  839.      e)  Lengthen the possible character lengths on ASCII file
  840.      names
  841.      f)  Enhanced the Condense print mode
  842.      g)  Added Display: {number of records in query} vs. {total
  843.      records in file}
  844.      h)  Added 'Save-a-Query', one key save of a current query
  845.      parameters for future use
  846.      i)  Added save the resulting query results to a .DBF file.  
  847.          
  848.      Added features from qBase V1.0 (Jan 1990) to V1.1 (Jun
  849. 1990):
  850.  
  851.      a)  Editing Mode - the user will be able to edit the data
  852.      file after the query has been reported. (License Version
  853.      Only)
  854.      b)  Global Replacements on a Query - find all records that
  855.      meet a condition or set of conditions, replace that query
  856.      field's data range with a new value.  (License Version Only)
  857.      c)  Print to File - ASCII file with a .TXT extension in both
  858.      Delimited and Text format.
  859.      d)  Access .DBF files from any directory or drive.        
  860.      e)  Unlimited Fields Available for Reporting (V1.0 11 fields
  861.      was max).
  862.      f)  Laser or Dot Matrix Printer Support Available
  863.      g)  First Menu can be by-passed by directly keying in the
  864.      file name at the prompt (C:\>QBASE {filename.DBF}
  865.  
  866. 6.  Registration
  867.  
  868.      qBase V1.21 is released under the shareware concept.  If you
  869. find continual use to be a habit, registration and $25.00 is
  870. requested.
  871.  
  872.                         Santa Clarita SoftWorks
  873.                         attn:  Robert Matthews
  874.                         P.O. Box 802664
  875.                         Santa Clarita CA 91380-2664
  876.  
  877.       Register users will receive a fully operating licensed
  878. qBase V1.21 with editing features and SCSW statements removed from
  879. printed reports.  A 5.25" diskette and the printed version of
  880. this document will be included.
  881.  
  882.      Future upgrades will be available to licensed users with a
  883. $5.00 shipping  and handling charge.
  884.  
  885.      This program is provided AS IS without any warranty,
  886. expressed or implied, including but not limited to fitness for a
  887. particular purpose. Santa Clarita SoftWorks hereby disclaims all
  888. warranties relating to this product, whether express or implied,
  889. including without limitation any implied warranties of
  890. merchantability or fitness for a particular purpose. Santa
  891. Clarita SoftWorks cannot and will not be liable for any special,
  892. incidental, consequential, indirect or similar damages due to
  893. loss of data or any other reason, even if Santa Clarita SoftWorks
  894. or an authorized Santa Clarita SoftWorks agent has been advised
  895. of the possibility of such damages.  In no event shall the
  896. liability for any damages ever exceed the price paid for the
  897. license to use software, regardless of the form and/or extent of
  898. the claim.  The user of this program bears all risk as to the
  899. quality and performance of the software.
  900.  
  901.     qBase is a Shareware product.  As such, it is made available
  902. to the general computing public for evaluation.  Users are
  903. licensed to operate qBase on their personal computers for the
  904. purpose of test and evaluation on a trial basis for a limited
  905. trial period.  It is not possible to reasonably define any
  906. definitive limits of a fair and equitable time period for
  907. evaluation, therefore it is left to the user's judgement and
  908. sense of fair play as to the time required to make a decision as
  909. to its usefulness.  If the user decides the program is not of
  910. sufficient merit to warrant purchase through registration with
  911. Santa Clarita SoftWorks, the program should be removed from their
  912. personal computer. Otherwise, if the program is deemed useful and
  913. is in regular use on the user's personal computer system,
  914. registration with Santa Clarita SoftWorks is required.
  915.  
  916.  
  917.